<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/faq_index.js"></script> 
<script src="/wondershare/js/jquery.cvbox.min.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../images/unti.js"></script>

<title>首页推荐<{$tile}>页</title>

<script>
function check_submit()
{
 if($('#h_category_str_id').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('推荐分类不能为空！');
      return false;
  }
  if($('#h_product_str_id').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('推荐产品不能为空！');
      return false;
  }
  return true;
}

</script>
</head>

<body  >
<h1>

<span class="action-span1">

<a href="/wondershare/faq_index.php?action=index&web_type=<{$web_type}>" style="text-decoration:underline">首页管理</a> 
</span>
<span id="search_id" class="action-span1"> - 首页<{$tile}> </span>
<div style="clear:both"></div>
</h1>
<div id="tabbar-div">
      <p>
     
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="/wondershare/faq_index.php?action=edit&web_type=<{$web_type}>" onsubmit="return check_submit();">
        <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
            <td class="label">推荐分类：</td>
            <td>  <textarea name="category_str_id"  id="category_str_id" size="50"    style=" width:500px; height:150px; " disabled="disabled" /><{foreach from=$index_info.arr_category item=rows_c}><{$rows_c.type_name}> <{$chr_13}><{/foreach}>
			    </textarea>
			   <input type="hidden" value="<{$index_info.re_category_id}>"  name='h_category_str_id' id='h_category_str_id'  style="width:350px;" />
			  <input type="button" value="  选择推荐分类 "  onclick="getindexlist('index_category')"/>
			 </td>
          </tr>
		  <tr>
            <td class="label">推荐产品：</td>
            <td>
			  <textarea name="product_str_id"  id="product_str_id" size="50"  style=" width:500px; height:150px; "    disabled="disabled"/><{foreach from=$index_info.arr_product item=rows_c}><{$rows_c.product_name}><{$chr_13}><{/foreach}>
			    </textarea>
			   <input type="hidden" value="<{$index_info.re_product_id}>"  name='h_product_str_id' id='h_product_str_id'  style="width:350px;" />
			  <input type="button" value="  选择推荐产品 "  onclick="getindexlist('index_product')"/>
			 </td>
          </tr>     
        </tbody></table>

        <div  style="margin-left:380px; margin-top:20px;">
          <input type="hidden"  name="re_id" value="<{$index_info.re_id}>">
          <input type="hidden" name="web_info"  id="web_info" value="<{$web_info}>" />
          <input type="hidden" name="web_type"  id="web_type" value="<{$web_type}>" />
          <input type="submit"   class="button" value="<{$tile}> " name="sub_from">
          <input type="reset" class="button" value=" 重置 ">
        </div>
        <input type="hidden" value="<{$form_act}>" name="act" >
      
      </form>
    </div>
</body>
</html>